package com.luzh.myspring.beans.factory;

import com.luzh.myspring.beans.BeanException;

/**
 * bean工厂
 */
public interface BeanFactory {

    Object getBean(String beanName) throws BeanException;

    Object getBean(String name, Object... args) throws BeanException;

    <T> T getBean(String name, Class<T> requiredType) throws BeanException;

    <T> T getBean(Class<T> requiredType) throws BeanException;

    boolean containsBean(String name);
}
